package com.swn.common.util;

import java.util.HashMap;
import java.util.Map;

public class HttpClientTest {

	public static void main(String[] args) {
		
		
		StringBuffer xmlStr = new StringBuffer();
		/*
		xmlStr.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>")
				.append("\n");
		xmlStr.append("<Params>").append("\n");
		xmlStr.append("  <InterfaceMode>123</InterfaceMode>").append("\n");
		xmlStr.append("  <FuncCode>A100010</FuncCode>").append("\n");
		xmlStr.append("  <DataList>").append("\n");
		xmlStr.append("     <Name>张三</Name>").append("\n");
		xmlStr.append("     <ID>777</ID>").append("\n");
		xmlStr.append("    <Age>30</Age>").append("\n");
		xmlStr.append("  </DataList>").append("\n");
		xmlStr.append("</Params>").append("\n");
*/
		Map<String,String> m = new HashMap<String, String>();
		m.put("xml", xmlStr.toString());
		
		String ss = HttpClientUtil.post(
				"http://localhost:8080/socialorg/stuInfo/testWebService.action", m);
		System.out.println(ss);
		
		
		
		
	}
}
